﻿using Microsoft.Extensions.Logging;
using ST.Common.Util;
using ST.Common.Util.Text;
using ST.Common.Util.Xml;
using ST.WX.Common.Exceptions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Web;
using System.Xml;

namespace ST.WX.Common.Pay
{
	/// <summary>
	/// 关闭订单返回数据
	/// </summary>
	public class WXPayCloseOrderRet : WXPayRet
	{
		protected override void ConvertToObj()
		{
			base.ConvertToObj();//需要调用基类解析基础返回字段
		}

		public override void Validate()
		{
			base.Validate();//需要调用基类进行基本判断
			if (result_code != "SUCCESS")
			{
				throw new WXPayException("关闭订单失败，错误代码：" + err_code + " " + err_code_des);
			}
		}
	}
}
